package controllers

import (
	"github.com/astaxie/beego"
)

type MainController struct {
	beego.Controller
}

func (c *MainController) Get() {
	c.Data["Website"] = "我的网站"
	c.Data["Email"] = "test@beego.com"
	//c.Ctx.WriteString("Welcome")   输出字符串
	c.TplName = "index.tpl"
}

func (c *MainController) Test() {
	c.Ctx.WriteString("测试")
}
